package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.vo.Approval.ApprovalManagement.ApprovalManagementVO;
import com.ruoyi.system.domain.vo.Approval.ApprovalManagement.Apporver;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface ApprovalManagementMapper {
    List<ApprovalManagementVO> selectApprovalList(@Param("status") String status, @Param("typeName") String typeName,@Param("approverId") Long approverId);

    //同意
    Integer agree(@Param("id") int id);

    //拒绝
    Integer refuse(@Param("id") int id);
    //转交
    Integer transfer(@Param("id") int id, @Param("nextId") int nextId);

    //查询管理员
    List<Apporver> selectApprovers();
}
